﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SocialRelationPropertyRecordUserControl.ascx.cs" Inherits="JM.JCY.SharePointComponent.PersonalInformationDocument.SocialRelationPropertyRecord.SocialRelationPropertyRecordUserControl" %>
<%@ Assembly Name="NCS.IConnect.ApplicationContexts, Version=3.9.0.0, Culture=neutral, PublicKeyToken=a20767533a162583" %> 
<%@ Import Namespace="NCS.IConnect.ApplicationContexts" %>
<%@ Register Src="../PersonalInformationDocLeftMenu/PersonalInformationDocLeftMenuUserControl.ascx" TagName="PersonalInformationDocLeftMenuUserControl" TagPrefix="uc1" %>
<link rel="Stylesheet" href="/_layouts/JM.JCY.Resource/jQueryPlugin/themes/base/jquery.ui.all.css" />
<link rel="Stylesheet" href="/_layouts/JM.JCY.Resource/jQueryPlugin/demos.css"/>
 


<script type="text/javascript">
    $(document).ready(function () {

    
        $("#td_SocialRelation").click(function () {
            $("#divSocialRelation").slideToggle("slow", function callback() {
                if ($("#divSocialRelation").is(":visible")) {
                    $("#imgBtnSocialRelation").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_collapse.png");
                }
                else {
                    $("#imgBtnSocialRelation").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_expand.png");
                }
            });
        });

        $("#td_PropertyInformation").click(function () {
            $("#DivPropertyInformation").slideToggle("slow", function callback() {
                if ($("#DivPropertyInformation").is(":visible")) {
                    $("#imgBtnPropertyInformation").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_collapse.png");
                }
                else {
                    $("#imgBtnPropertyInformation").attr("src", "/_Layouts/JM.JCY.Resource/images/toggle_expand.png");
                }
            });
        });
    });

</script>

<div>

    <table class="main">
        <tr>
           <td valign="top" width="30%" runat="server" id="tdLeftMenu">
                <uc1:PersonalInformationDocLeftMenuUserControl ID="LeftMenuUserControl1" runat="server" />
            </td>
             <td valign="top" width="70%" runat="server" id="tdContent">
                <table class="content" width="98%">
                   <tr>
                        <td style="padding: 5px;">
                            <table width="100%">
                                <tr>
                                    <td>
                                        <table width="100%" class="galleryHeader">
                                            <tr>
                                                <td id="td_SocialRelation" width="100%" style="cursor: pointer">
                                                    <img id="imgBtnSocialRelation" src="/_Layouts/JM.JCY.Resource/images/toggle_expand.png"
                                                        alt="" />&nbsp;社会关系
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div id="divSocialRelation" visible="false" style="display: none;">
                                            <table width="95%" class="form">
                                            <tr>
                                               <td>
                                                   <asp:Label ID="SocialRelationNoRecord" ForeColor="#CC3300" runat="server" Text="没有在【政工信息系统】找到相关的社会关系！" Visible="false"></asp:Label>
                                               </td>
                                           </tr>
                                                <tr>
                                                    <td>
                                                        <asp:DataList ID="dlSocialRelation" runat="server" OnItemDataBound="dlSocialRelation_ItemDataBound"
                                                            Width="100%">
                                                            <ItemTemplate>
                                                                <hr runat="server" id="hr" />
                                                                <table width="100%" class="profile">
                                                                <tr>
                                                                   <td width="15%" colspan="4" style="color: #000080">
                                                                       序号:
                                                                      <asp:Label ID="lbID" runat="server"></asp:Label>
                                                                   </td>
                                                               </tr>
                                                                    <tr>
                                                                      
                                                                        <td width="15%">
                                                                            <b>姓名</b>
                                                                        </td>
                                                                        <td width="1%">
                                                                            :
                                                                        </td>
                                                                        <td width="24%">
                                                                            <asp:Label ID="lbName" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td width="10%">
                                                                            <b>关系称谓</b>
                                                                        </td>
                                                                        <td width="1%">
                                                                            :
                                                                        </td>
                                                                        <td width="19%">
                                                                            <asp:Label ID="lbRelationName" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td width="15%">
                                                                            <b>出生年月</b>
                                                                        </td>
                                                                        <td width="1%">
                                                                            :
                                                                        </td>
                                                                        <td width="14%">
                                                                            <asp:Label ID="lbBirth" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="15%">
                                                                            <b>工作单位</b>
                                                                        </td>
                                                                        <td width="1%">
                                                                            :
                                                                        </td>
                                                                        <td width="24%">
                                                                            <asp:Label ID="lbWorkPlace" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td width="10%">
                                                                            <b>职务</b>
                                                                        </td>
                                                                        <td width="1%">
                                                                            :
                                                                        </td>
                                                                        <td width="19%">
                                                                            <asp:Label ID="lbJobTitle" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td width="15%">
                                                                            <b>政治面貌</b>
                                                                        </td>
                                                                        <td width="1%">
                                                                            :
                                                                        </td>
                                                                        <td width="14%" colspan="4">
                                                                            <asp:Label ID="lbPoliticalLandscape" runat="server"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                        </asp:DataList>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                       <td style="padding: 5px;">
                           <table width="100%">
                               <tr>
                                   <td>
                                       <table width="100%" class="galleryHeader">
                                           <tr>
                                               <td id="td_PropertyInformation" width="100%" style="cursor: pointer">
                                                   <img id="imgBtnPropertyInformation" src="/_Layouts/JM.JCY.Resource/images/toggle_expand.png"
                                                       alt="" />&nbsp;财产情况
                                               </td>
                                           </tr>
                                       </table>
                                   </td>
                               </tr>
                               <tr>
                                   <td>
                                       <div id="DivPropertyInformation" visible="false" style="display: none;">
                                           <table width="95%" class="form">
                                               <tr>
                                                   <td>
                                                       <table width="100%" class="title">
                                                           <tr>
                                                               <td width="60%">
                                                               </td>
                                                               <td align="right" width="40%">
                                                                   <img src="/_layouts/JM.JCY.Resource/images/plus.png" width="12" /><a class="ms-addnew" id="idHomePageNewItem" href="#" target="_self" runat="server">创建新纪录</a>
                                                               </td>
                                                           </tr>
                                                       </table>
                                                   </td>
                                               </tr>
                                           </table>
                                           <table width="95%">
                                               <tr>
                                                   <td>
                                                       <table width="100%">
                                                           <tr>
                                                               <td>
                                                                   <hr>
                                                               </td>
                                                           </tr>
                                                           <tr>
                                                               <td>
                                                                   <SharePoint:ListView ID="lvProperty" runat="server" />
                                                               </td>
                                                           </tr>
                                                       </table>
                                                   </td>
                                               </tr>
                                           </table>
                                       </div>
                                   </td>
                               </tr>
                            
                           </table>
                       </td>
                    </tr>
                </table>
             </td>
        </tr>

    </table> 
    
</div> 

